package com.hera.process.config.dao;

import java.util.List;

import org.springframework.data.jpa.repository.Query;

import com.hera.base.dao.repository.BaseRepository;
import com.hera.process.form.domain.Dynaform;

public interface DynaformDao extends BaseRepository<Dynaform, Long> {
	
	//@Query("select entity from Dynaform entity where entity.idProcess = ?1")
	public List<Dynaform> findStageByIdProcess(Long idProcess);
	@Query("select entity from Dynaform entity where entity.type.idParameterDetail = ?1 and entity.idProcess = ?2")
	public List<Dynaform> findTypeFormByProcess(Long typeForm, Long idProcess);

}
